export const FROZEN_STATUS = {
  NORMAL: "启用",
  FROZEN: "禁用"
};

export const SEX_STATUS = {
  1: "男",
  2: "女",
  3: "未知"
};

export enum HTTP_METHOD {
  GET = "GET", // 获取资源
  POST = "POST", // 提交数据
  PUT = "PUT", // 更新资源
  DELETE = "DELETE", // 删除资源
  PATCH = "PATCH", // 局部更新资源
  HEAD = "HEAD", // 获取响应头
  OPTIONS = "OPTIONS", // 获取可用方法
  TRACE = "TRACE", // 追踪请求路径
  CONNECT = "CONNECT" // 建立隧道连接
}

export const HttpMethodCN: Record<HTTP_METHOD, string> = {
  [HTTP_METHOD.GET]: "获取",
  [HTTP_METHOD.POST]: "提交",
  [HTTP_METHOD.PUT]: "更新",
  [HTTP_METHOD.DELETE]: "删除",
  [HTTP_METHOD.PATCH]: "修改",
  [HTTP_METHOD.HEAD]: "头信息",
  [HTTP_METHOD.OPTIONS]: "选项",
  [HTTP_METHOD.TRACE]: "追踪",
  [HTTP_METHOD.CONNECT]: "连接"
};
